package com.czh.springboot04.mapper;

import com.czh.springboot04.entity.UserMark;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMarkMapper {

    int insertUserMark(UserMark userMark);
    int updateUserMarkById(UserMark userMark);
    UserMark selectUserMarkById(Integer id);
    int deleteUserMarkById(Integer id);
    int deleteUserMarkByList(List<Integer> idList);
    List<UserMark> selectUserMarkAll(@Param("userId") Integer userId,
                                     @Param("consultId") Integer consultId,
                                     @Param("appId") Integer appId,
                                     @Param("markStar") int markStar);
    List<UserMark> selectUserMark();
}
